import request from '@/utils/request'

// 获取银行卡绑定状态
export function getBankCardStatus() {
  return request({
    url: '/api/bankcard/status',
    method: 'get'
  })
}

// 身份证实名认证
export function verifyIdCard(data) {
  return request({
    url: '/api/bankcard/verify-idcard',
    method: 'post',
    data
  })
}

// 绑定银行卡
export function bindBankCard(data) {
  return request({
    url: '/api/bankcard/bind',
    method: 'post',
    data
  })
}

// 解绑银行卡
export function unbindBankCard(data) {
  return request({
    url: '/api/bankcard/unbind',
    method: 'post',
    data
  })
}

// 发送短信验证码
export function sendSmsCode(data) {
  return request({
    url: '/api/bankcard/send-sms',
    method: 'post',
    data
  })
}
